package com.air.thread.model.futureMode;

/**
 * @author shent
 */
public class Host {
    public Data request(final int count, final char c) {
        final FutureData futureData = new FutureData();
        new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
            RealData realData = new RealData(count, c);
            futureData.setRealData(realData);
        }).start();
        return futureData;
    }
}
